/* Assistant
*
- * Demonstrates a sample multi-step assistant. Assistants are used to divide
- * an operation into several simpler sequential steps, and to guide the user
- * through these steps.
+ * Demonstrates a sample multi-step assistant with GtkAssistant. Assistants
+ * are used to divide an operation into several simpler sequential steps,
+ * and to guide the user through these steps.
*/
#include <gtk/gtk.h>
/* Combo Boxes
+ * #Keywords: GtkCellRenderer
*
* The GtkComboBox widget allows to select one option out of a list.
* The GtkComboBoxEntry additionally allows the user to enter a value
/* Constraints/Simple
+ * #Keywords: GtkLayoutManager
*
* GtkConstraintLayout provides a layout manager that uses relations
* between widgets (also known as "constraints") to compute the position
/* Constraints/Interactive
+ * #Keywords: GtkConstraintLayout
*
* Demonstrate how constraints can be updates during user interaction.
* The vertical edge between the buttons can be dragged with the mouse.
/* Theming/CSS Accordion
*
* A simple accordion demo written using CSS transitions and multiple backgrounds
- *
*/
#include <gtk/gtk.h>
/* Theming/CSS Basics
*
- * Gtk themes are written using CSS. Every widget is build of multiple items
+ * GTK themes are written using CSS. Every widget is build of multiple items
* that you can style very similarly to a regular website.
- *
*/
#include <gtk/gtk.h>
/* Theming/Multiple Backgrounds
*
- * Gtk themes are written using CSS. Every widget is build of multiple items
+ * GTK themes are written using CSS. Every widget is build of multiple items
* that you can style very similarly to a regular website.
- *
*/
#include <gtk/gtk.h>
/* Dialogs
+ * #Keywords: GtkMessageDialog
*
* Dialogs are used to pop up transient windows for information
* and user feedback.
/* Drawing Area
+ * #Keywords: GtkDrawingArea
*
* GtkDrawingArea is a blank area where you can draw custom displays
* of various kinds.
/* Tree View/Filter Model
+ * #Keywords: GtkTreeView
*
* This example demonstrates how GtkTreeModelFilter can be used not
* just to show a subset of the rows, but also to compute columns
/* Fixed Layout
+ * #Keywords: GtkLayoutManager
*
* GtkFixed is a container that allows placing and transforming
* widgets manually.
/* Gestures
+ * #Keywords: GtkGesture
*
* Perform gestures on touchscreens and other input devices. This
* demo reacts to long presses and swipes from all devices, plus
/* Header Bar
+ * #Keywords: GtkWindowHandle, GtkWindowControls
*
* GtkHeaderBar is a container that is suitable for implementing
* window titlebars. One of its features is that it can position
/* Text View/Hypertext
+ * #Keywords: GtkTextView, GtkTextBuffer
*
* Usually, tags modify the appearance of text in the view, e.g. making it
* bold or colored or underlined. But tags are not restricted to appearance.
/* Benchmark/Scrolling
+ * #Keywords: GtkScrolledWindow
*
* This demo scrolls a view with various content.
*/
/* Images
+ * #Keywords: GdkPaintable, GtkWidgetPaintable
*
* GtkImage and GtkPicture are used to display an image; the image can be
* in a number of formats.
/* Info Bars
+ * #Keywords: GtkInfoBar
*
* Info bar widgets are used to report important messages to the user.
*/
/* Layout Manager/Transition
+ * #Keywords: GtkLayoutManager
*
* This demo shows a simple example of a custom layout manager
* and a widget using it. The layout manager places the children
/* Layout Manager/Transformation
+ * #Keywords: GtkLayoutManager, GskTransform
*
* This demo shows how to use transforms in a nontrivial
* way with a custom layout manager. The layout manager places
* The GtkListStore is used to store data in list form, to be used
* later on by a GtkTreeView to display it. This demo builds a
* simple GtkListStore and displays it.
- *
*/
#include <gtk/gtk.h>
*
* GtkListBox allows lists with complicated layouts, using
* regular widgets supporting sorting and filtering.
- *
*/
#include <gtk/gtk.h>
/* Lists/Application launcher
+ * #Keywords: GtkListItemFactory, GListModel
*
* This demo uses the GtkListView widget as a fancy application launcher.
*
/* Lists/Clocks
+ * #Keywords: GtkGridView, GtkListItemFactory, GListModel
*
* This demo displays the time in different timezones.
*
* The goal is to show how to set up expressions that track changes
* in objects and make them update widgets. For that, we create a
- * GtkClock object that updates its time every second and then use
+ * clock object that updates its time every second and then use
* various ways to display that time.
*
* Typically, this will be done using GtkBuilder .ui files with the
/* Lists/Colors
+ * #Keywords: GtkSortListModel, GtkMultiSelection
*
* This demo displays a grid of colors.
*
/* Lists/File browser
+ * #Keywords: GListModel
*
* This demo shows off the different layouts that are quickly achievable
* with GtkListview and GtkGridView by implementing a file browser with
/* Lists/Minesweeper
+ * #Keywords: GtkGridView, GListModel, game
*
* This demo shows how to develop a user interface for small game using a
- * gridview.
+ * grid view.
*
* It demonstrates how to use the activate signal and single-press behavior
* to implement rather different interaction behavior to a typical list.
/* Lists/Settings
+ * #Keywords: GtkListItemFactory, GListModel
*
* This demo shows a settings viewer for GSettings.
*
/* Lists/Words
+ * #Keywords: GtkListView, GtkFilterListModel
*
* This demo shows filtering a long list - of words.
*
/* Text View/Markup
+ * #Keywords: GtkTextView
*
* GtkTextBuffer lets you define your own tags that can influence
* text formatting in a variety of ways. In this example, we show
/* Overlay/Interactive Overlay
+ * #Keywords: GtkOverlay
*
* Shows widgets in static positions over a main widget.
*
/* Overlay/Decorative Overlay
+ * #Keywords: GtkOverlay
*
* Another example of an overlay with some decorative
* and some interactive controls.
/* Printing/Page Setup
+ * #Keywords: GtkPageSetup
*
* GtkPageSetupUnixDialog can be used if page setup is needed
* independent of a full printing dialog.
/* Paint
+ * #Keywords: GdkDrawingArea, GtkGesture
*
* Demonstrates practical handling of drawing tablets in a real world
* usecase.
/* Peg Solitaire
+ * #Keywords: GtkGridView, game
*
* This demo demonstrates how to use drag'n'drop to implement peg solitaire.
*
/* Pickers
+ * #Keywords: GtkColorChooser, GtkFontChooser, GtkFileChooser,
+ * #Keywords: GtkApplicationChooser
*
* These widgets are mainly intended for use in preference dialogs.
* They allow to select colors, fonts, files, directories and applications.
*
* GtkPrintOperation offers a simple API to support printing
* in a cross-platform way.
- *
*/
#include <math.h>
/* Pango/Rotated Text
*
* This demo shows how to use PangoCairo to draw rotated and transformed
- * text. The right pane shows a rotated GtkLabel widget.
+ * text. The right pane shows a rotated GtkLabel widget.
*
* In both cases, a custom PangoCairo shape renderer is installed to draw
- * a red heard using cairo drawing operations instead of the Unicode heart
+ * a red heart using cairo drawing operations instead of the Unicode heart
* character.
*/
/* Entry/Delayed Search Entry
*
- * GtkSearchEntry sets up GtkEntries ready for search. Search entries
- * have their "changed" signal delayed and should be used
- * when the searched operation is slow such as loads of entries
- * to search, or online searches.
+ * GtkSearchEntry provides an entry that is ready for search.
+ *
+ * Search entries have their "changed" signal delayed and should
+ * be used when the searched operation is slow such as loads of
+ * entries to search, or online searches.
+ *
+ * GtkSearchBar allows have a hidden search entry that 'springs
+ * into action' upon keyboard input.
*/
#include <gtk/gtk.h>
/* OpenGL/Shadertoy
+ * #Keywords: GtkGLArea
*
* Generate pixels using a custom fragment shader.
*
/* Shortcuts
+ * #Keywords: GtkShortcutController
*
* GtkShortcut is the abstraction used by GTK to handle shortcuts from
* keyboard or other input devices.
/* Sliding Puzzle
+ * #Keywords: GdkPaintable, GdkGesture, game
*
* This demo demonstrates how to use gestures and paintables to create a
* small sliding puzzle game.
- *
*/
#include <gtk/gtk.h>
/* Spin Buttons
+ * #Keywords: GtkEntry
*
* GtkSpinButton provides convenient ways to input data
* that can be seen as a value in a range. The examples
/* Spinner
*
* GtkSpinner allows to show that background activity is on-going.
- *
*/
#include <glib/gi18n.h>
/* Text View/Automatic Scrolling
+ * #Keywords: GtkTextView, GtkScrolledWindow
*
* This example demonstrates how to use the gravity of
* GtkTextMarks to keep a text view scrolled to the bottom
/* Overlay/Transparency
+ * #Keywords: GtkOverlay, GtkSnapshot
*
* Blur the background behind an overlay.
*/
/* Video Player
+ * #Keywords: GtkVideo, GtkMediaStream, GtkMediaFile, GdkPaintable
+ * #Keywords: GtkMediaControls
*
* This is a simple video player using just GTK widgets.
*/